<?php
/**
 * 系统消息
 *
 * User: kaikaic
 * Date: 2018/11/25
 * Time: 1:32
 */

namespace app\exam\service;

use service\BasicService;
use service\ToolsService;
use think\Db;

class MessageService extends BasicService {

    public function init() {
        $this->dataTable = ['PsyMesage'];
    }

    /**
     * 发送团检申请审核消息
     */
    public function sendApplyMessage() {
        $message1 = "很遗憾，您的申请没有通过";
        $message2 = "恭喜您，您的申请已通过";

        //TODO
    }

    /**
     * 发送体检预约消息
     */
    public function sendOrderMessage($accountID, $type, $title, $content) {
        $params = array();
        $params['account_id'] = $accountID;
        $params['type'] = $type;
        $params['title'] = $title;
        $params['content'] = $content;
        $params['create_time'] = time();

        $this->insert($params);
    }

}

